
function Counter(){
	this.counters;
}

Counter.checkCounter = function( idx ){
	this.counters = this.counters || {};
	
	if ( !this.counters[idx] ){
		this.counters[idx] = 0;
	}
}

Counter.increment = function(counter){
	this.checkCounter(counter);
	this.counters[counter] ++;	
}